<template>
	<view class="page">
		<uni-nav-bar left-icon="left" @clickLeft="back" backgroundColor="#3183FB" style="width: 100%;" :border="false"
			color="#fff" title="活动详情"></uni-nav-bar>
		<view class="background"></view>
		<view class="content">
			<view class="item">
				<view class="label">标题:</view>
				<view class="value">{{title}}</view>
			</view>
			<view class="item">
				<view class="label">发布人:</view>
				<view class="value">{{publisher}}</view>
			</view>
			<view class="item">
				<view class="label">发布时间:</view>
				<view class="value">{{publishTime}}</view>
			</view>
			<view class="item">
				<view class="label">审核状态:</view>
				<view class="value">{{auditStatus}}</view>
			</view>
			<view class="item">
				<view class="label">审核时间:</view>
				<view class="value">{{auditTime}}</view>
			</view>
			<view class="item">
				<view class="label">审核说明:</view>
				<view class="value">{{auditRemark}}</view>
			</view>
		</view>
		<view class="publish-content">
			<view class="item-content">
				<view class="label">发布内容:</view>
				<view class="value" style="line-height: 50rpx;">{{publishContent}}</view>
			</view>
			<view class="item-content">
				<view class="label">图片:</view>
				<image src="/static/uni.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '洗车优惠活动开始领取了',
				publisher: '大美汽修',
				publishTime: '2023/03/10 11:09',
				auditStatus: '待审核 / 审核通过 / 审核不通过',
				auditTime: '2023/03/10 15:09',
				auditRemark: '',
				publishContent: '活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容活动内容'
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				});
			},
		}
	}
</script>

<style>
	page {
		background-color: #F7F7F7;
	}

	.page {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}

	.background {
		position: relative;
		background-color: #3183FB;
		width: 100%;
		height: 150rpx;
	}

	.content {
		top: -110rpx;
		position: relative;
		padding: 20rpx;
		background-color: white;
		border-radius: 20rpx;
		width: 90%;
	}

	.publish-content {
		top: -80rpx;
		position: relative;
		padding: 20rpx;
		background-color: white;
		border-radius: 20rpx;
		width: 90%;
	}

	.item {
		display: flex;
		align-items: center;
		margin-bottom: 20rpx;
	}

	.item-content {
		display: flex;
		margin-bottom: 20rpx;
	}

	.label {
		width: 150rpx;
		margin-right: 20rpx;
	}

	.value {
		flex: 1;
		font-size: 26rpx;
	}

	image {
		width: 260rpx;
		height: 260rpx;
	}
</style>